+7 (916) 741 5495
support@netams.com

                         english   

 

Perl API


NeTAMS . , , , , . NeTAMS , Perl- CGI-.

:
require "netams_api.pl"
, :
  • $result=netams_login($hostname, $port, $username, $password); - , . $result "Welcome",
  • netams_send($command); - $command
  • $result=netams_read(); - $result
  • $result=netams_readline(); - , ( , "\n").
  • netams_logout(); - .
, NeTAMS:
  • netams_example.cgi - show version cgi-. .
  • login.cgi - login.
  • netams_graph.cgi - , PNG , . ( GET):
    unit=UNIT_NAME - , ,
    policy=POLICY_NAME - , . policy .
    prefix=PREFIX - , , W () M () , =W
    nolegend=FLAG - , .
    GD.pm libgd. FreeBSD - cd /usr/ports/graphics/p5-GD ; make install. lucon.ttf, TrueType- Lucida Console Windows XP.

[an error occurred while processing this directive]