Telnet scripting solutions?

Discussion in 'Optigold ISP' started by robertg, Nov 5, 2004.

  1. #1
    Shawn,
    I've been using OptiGold for about 5 years now, ever since I worked for my first ISP. I now manage a small to medium size ISP fulltime, and I'm working on switching over their accounting/administration system to OG. I've installed the trial, set the settings in Auto Server setup, and have it working semi decently. My problem comes from the telnet scripting area. Currently I have it set up to login, add new users via net.exe, add comments & then logoff. I tried adding in extra code to use cusrmgr to set PasswordNeverExpires, and I get an error about the 256 character script limit. I've since set the cusrmgr functions to run under the Generic 1 button, but what I want it to do ultimately is for both scripts to run at the same time whenever I add a user for the first time. Are there any workarounds or special commands I can use to do this?

    Rob Graham,
    WeLink Internet Services
     
    robertg, Nov 5, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Unfortunately it's a limitation of Windows itself. Although there is a native FileMaker plug-in for telnet that is in beta right now, so hopefully soon that restriction will no longer be there.

    The only work-around would be to shorten the "wait for" side of things. For example, a wait for of "Password: " could be shortened to just "d:" as an example.
     
    digitalpoint, Nov 5, 2004 IP
  3. robertg

    robertg Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What gets me tho, is that I can set it up to login, do the task them exit, then login again, do another task then exit (effectively running 2 scripts), and it still tells me the script is over the limit. Any thoughts?
     
    robertg, Nov 5, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    That is strange. Are you using any quote characters within your telnet script?
     
    digitalpoint, Nov 5, 2004 IP
  5. robertg

    robertg Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    What's the name of the plugin you mentioned, so I can look for it when it comes out?
     
    robertg, Nov 5, 2004 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    It's being added to the NetTools plug-in that Optigold already ships with.
     
    digitalpoint, Nov 5, 2004 IP
  7. robertg

    robertg Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Shawn,

    The setup I have so far is:

    login: ***********

    password: **********

    C:\> net user <Login> <Pass> /active:YES /expires:NEVER /fullname:"<FName> <LName>" /passwordchg:NO /passwordreq:YES /comment:"(<AreaCode>) <Phone>" /add

    <e>

    C:\> exit


    What I want to be able to add is:

    C:\> cusrmgr -u <Login> [-m \\*****] +s PasswordNeverExpires
     
    robertg, Nov 5, 2004 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    Yeah, unfortunately I don't think there is a lot that can be done on that... except maybe bounce it off a .bat file or something that takes a set number of parameters and makes the net user command and triggers it for you.
     
    digitalpoint, Nov 5, 2004 IP
  9. robertg

    robertg Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    How do the Generic actions work, as in where in OG are they used aside from the Auto Server setup? I haven't seen any reference to them anywhere else.
     
    robertg, Nov 5, 2004 IP
  10. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #10
    They are triggered from the Scripts menu.
     
    digitalpoint, Nov 5, 2004 IP