Software Development Kit (SDK) and API Discussions

API call for snmp,ndmp and some node shell command

Dong_Chen
2,248 Views

cannot find the API call for perl in cDOT.

 

snmp contact

snmp init

snmp location

ndmpd killall                    #corresponding CLI is { system | vserver } services ndmp killall

ndmpd probe                   #corresponding CLI is { system | vserver } services ndmp probe

 

and some command can be excuted in nodeshell, how can I call them form API?

rtag -t malloc

mem_scrub_stats

netdiag -s

netstat

 

Thanks for the help!

1 ACCEPTED SOLUTION

asulliva
2,223 Views

From ClusterShell you can use the "security login role show-ontapi" command to view a list of commands and their equivalent API.  According to that list, "snmp init" is the same as the "snmp-enable" API.

 

For the others, which are not in the list, you may be able to use the system-cli API to execute the commands.  Depending on the information you want from the diagnostic commands in the second list, the information may be available as a part of the perf APIs.

 

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

1 REPLY 1

asulliva
2,224 Views

From ClusterShell you can use the "security login role show-ontapi" command to view a list of commands and their equivalent API.  According to that list, "snmp init" is the same as the "snmp-enable" API.

 

For the others, which are not in the list, you may be able to use the system-cli API to execute the commands.  Depending on the information you want from the diagnostic commands in the second list, the information may be available as a part of the perf APIs.

 

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public