Unsolved
This post is more than 5 years old
8 Posts
0
1080
November 19th, 2009 04:00
Smarts AM - CLI device access objects
Hello!
I'm sorry if this has been already answered elsewhere, but after a very long search here at the support site, I didn't really find what I was looking for.
I'm simply trying to launch a third-party program from Smarts Global Manager using some of the devices parameters. The problem is that I also need the device’s CLI credentials (user and password) from Incharge-AM server and although I can connect to the server using a GA_Driver with remote access, I don’t really know what to do there to get this kind of information.
So, I would really like to know more about “CLI device access objects” and how I can access then (basically the user and password information) once in the Incharge-AM server.
Any help would be appreciated.
Thank you very much for your time.
Best regards.
Isabelle.
Berkay1
36 Posts
1
November 19th, 2009 07:00
Isabelle,
Your best best is to execute a perl script as a server tool. The notification properties including instancename and elementname are passed to the shell script as environment variables. In the perl script you'd need to connect to the Smarts domain to get the additional information and then launch the 3rd party program.
One problem is to figure out which domain to connect to if you have multiple Smarts domains. Notification has a SourceDomainName property, it cannot be relied on to get the underlying Smarts domain name. You may have to keep this data in a database, file etc. if all else fails. If you have only one domain or you can infer what domain to connect to from the device name etc. you won't have this problem.
Regards,
Berkay Mollamustafaoglu
http://www.ifountain.com
Ph: +1 (571) 766-6292
mberkay on yahoo, google and skype
isabellecda
8 Posts
0
November 20th, 2009 03:00
Hello Berkay,
Thank you very much for your attention.
I found a way to determine which domain I have to connect to (by filtering the ‘MemberOf’ property of my instance), but my problem now is still in relation to the device’s CLI credentials. Once I start the perl script, which class do I have manipulate to get the CLI’s user and password information?
I noticed that in the MPLS server the perl script ‘generic_cli_access.pl’ (used by the server tool example ‘LSPPing.sh’) uses the ‘GA_Parameters’ to access to this information. I just wonder how this is done since the remote ASL script creates an instance of this class only with basic parameters (domain name, system name, vendor, etc).
Again, thank you very much for your time.
Best regards.
Isabelle.
Berkay1
36 Posts
1
November 20th, 2009 06:00
Hi Isabelle,
I don't have access to MPLS domain at the moment. It sounds like your MPLS implementation uses CLI to access to the devices rather than or in addition to SNMP. Is that right? If so, I could not recall where MPLS domain stores the username/pwd for the devices.
It would make sense for it to be in the domain. Can you use Smarts Domain Manager to browse the classes? You probably need the Ctrl+Alt+M trick to be able to see hidden classes and props, etc.
The other possibility is that the credentials are in a config file somewhere. It used to be this way but not likely that it is still the case.
Sorry no concrete answer, just guessing.
Regards,
Berkay Mollamustafaoglu
http://www.ifountain.com
Ph: +1 (571) 766-6292
mberkay on yahoo, google and skype