ibm midrange - IBM i (as400) CIM and ethernet interfaces -


i'm trying check ethernet cards status on remote ibm (as400) machine wbemcli command :

wbemcli -nl ei ".../root/cimv2:ibmos400_ethernetport" 

tons of fields seem describe card's status, of them empty :

(...) -operationalstatus=2 -statusdescriptions="the line in use." -status= -healthstate= -communicationstatus= -detailedstatus= -operatingstatus= -primarystatus= -enabledstate=2 -otherenabledstate= -requestedstate=5 -enableddefault=6 -timeoflaststatechange= -availablerequestedstates= -transitioningtostate=12 (...) -availability=3 -statusinfo= (...) 

the non-empty fields contain integers, don't know that. has clue? i'm writing script assumption operationalstatus=2 means "up" , otherwise "down", that's not reliable.

thanks,

using search term as400 fruitless; operating system called ibm many years, , that's current documentation found. anyway, version of ibm server running? if it's old, don't have cim support yet. here's manual 7.1: (starting @ knowledge center) ibm 7.1 > systems management > common information model > reference information cim > hardware inventory , network management providers > ibm_ethernetport unfortunately, ibm's implementation of cim documented cim's schema. here's link schema 2.40 cim-device shows operationalstatus, defines uint16[]

there may gotcha - newer versions of ibm can virtualised , may not able @ physical hardware via cim. don't know fact; it's you'd need research.

edit: how test using pase: turns out ibm 7.1 (with appropriate ptfs) , 7.2 (my release) have cim command line commands available, took moment , tried out. run in pase (call qp2term):

cimcli ni ibm_ethernetport ibm_ethernetport.creationclassname="ibm_ethernetport",deviceid="ethline",systemcreationclassname="ibmos400_computersystem",systemname="my.system.com" ibm_ethernetport.creationclassname="ibm_ethernetport",deviceid="ethlinepub",systemcreationclassname="ibmos400_computersystem",systemname="my.system.com" ibm_ethernetport.creationclassname="ibm_ethernetport",deviceid="ethlinepvt",systemcreationclassname="ibmos400_computersystem",systemname="my.system.com"  cimcli ei ibm_ethernetport                           path= ibm_ethernetport.creationclassname="ibm_ethernetport",deviceid="ethline",systemcreationclassname="ibmos400_computersystem",systemname="my.system.com"  //instance of ibm_ethernetport instance of ibm_ethernetport   {                              instanceid = null;             caption = "ethernet port ethline";                      description = "ethernet port information ethline."; elementname = "ethline";                                installdate = null;                                     name = "ethline";                                       operationalstatus = {2};                                statusdescriptions = {"the line in use."};           status = null;                                          healthstate = null;                                     communicationstatus = null;                             detailedstatus = null;                                  operatingstatus = null;                                 primarystatus = null;                                   enabledstate = 2;                                       otherenabledstate = null;                               requestedstate = 5;                                     enableddefault = 6;                                     ... 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -