home *** CD-ROM | disk | FTP | other *** search
- .{NETADMIN.MDF} mck
- . 1.0 July 1 1987
- . 2.0 April 13 1989
- .................................................
- .................................................
- .
- . site-specific changes:
- .
- . replace {SERVER1} with {your sname}
- . replace {SERVER2} with {your sname}
- . replace {PRINTER1} with {your pname}
- . replace {PRINTER2} with {your pname}
- . replace {Dot-matrix Color,stencils } with {your printer1 descripter}
- . replace {Laser Portrait,Landscape} with {your printer2 descripter}
- . replace {=echo [} with {}
- . replace {shelby} with {your password}
- .
- .................................................
- .................................................
- %NETADMIN Directories, Users, & Printers
- .................................................
- .................................................
- *Show Users Logged in to Network
- ?3F DIR \\... /LINK
- >3F DIR \\... /LINK
- >
- >Please Select a Server Name or SYS for Default Server
- >
- <SERVER1,SERVER2,SYS,ALL
- >
- >3F DIR \\%1 /LINK
- !echo off
- ! if %1.==ALL. goto ALL
- ! echo [3F DIR \\%1 /LINK
- ! goto done
- !:ALL
- ! for %%p in (SERVER1 SERVER2) do echo [3F DIR \\%%p /LINK
- !:done
- ! pause
- .................................................
- *Show Users Linked to a Printer
- ?3P DIR ... /LINK
- >3P DIR ... /LINK
- >
- >Please Select a Printer Name or ALL for All Printers
- > PRINTER1 Dot-matrix Color,stencils
- > PRINTER2 Laser Portrait,Landscape
- >
- <PRINTER1,PRINTER2,ALL
- >
- >3P DIR %1 /LINK
- !echo off
- ! if %1.==ALL. goto ALL
- ! echo [3P DIR %1 /LINK
- ! goto done
- !:ALL
- ! for %%p in (PRINTER1 PRINTER2) do echo [3P DIR %%p /LINK
- !:done
- ! pause
- .................................................
- *Show ShareNames & # Users Linked
- ?3F DIR [\\sharename|name] [/LINK]
- >3F DIR [\\sharename|name] [/LINK]
- >Enter a Username or Sharename, optionally followed by /LINK
- >to see how many users are linked to that user or share name
- >
- > Examples: \\sys all sharenames on server \\sys
- > \\sys /link users linked to server \\sys
- > {nothing} sharenames owned by you
- > \\admin sharenames owned by admin
- > \\sys\apps /link users linked to \\sys\apps
- >
- >
- <
- >
- =echo [3F DIR %1 %2
- .................................................
- *Show User Names
- ?3N DIR USER
- >3N DIR USER
- =echo [3N DIR USER
- .................................................
- *Show Aliases for Users
- ?3N DIR ALIAS
- >3N DIR ALIAS
- =echo [3N DIR ALIAS
- .................................................
- *Show Printer Names
- ?3P DIR
- >3P DIR
- =echo [3P DIR
- .................................................
- *
- @netadmin.mdf
- .................................................
- *Return to Main Menu
- @automenu.mdf
- .................................................
- .................................................
- %NETADMIN Server Status Reports
- .................................................
- .................................................
- *Show Server Disk Status
- ?(disk size & free space)
- >3F STAT
- =echo [3F STAT
- .................................................
- *Show Printer Status
- ?(physical port status)
- >3P STAT
- =echo [3P STAT
- .................................................
- *Show Backup Status
- ?3B STAT
- >3B STAT
- =echo [3B STAT
- .................................................
- *Show Mail Status
- ?3M STATUS
- >3M STATUS
- =echo [3M STATUS
- .................................................
- *Show Unread Mail in Mailboxes
- ?3M DIRM
- >3M DIRM
- =echo [3M DIRM
- .................................................
- *
- @netadmin.mdf
- .................................................
- *
- @netadmin.mdf
- .................................................
- *Return to Main Menu
- @automenu.mdf
- .................................................
- .................................................
- %NETADMIN Printer Maintenance
- .................................................
- .................................................
- *Show Printjobs in Printer Queue(s)
- ?3P QSTAT
- >3P QSTAT
- >
- >Please Select a Printer Name or ALL for All Printers
- > PRINTER1 Dot-matrix Color,stencils
- > PRINTER2 Laser Portrait,Landscape
- >
- <PRINTER1,PRINTER2,ALL
- >
- >Please Select Whose Printjobs You Wish to See
- >
- <MineOnly,All
- >
- ! echo off
- ! if %1%. == PRINTER1. goto PRINTER1
- ! if %1%. == PRINTER2. goto PRINTER2
- ! if %1%. == ALL. goto ALL
- ! goto abort
- !:PRINTER1
- ! if %2%. == MineOnly. goto repmine
- ! echo 3P QSTAT PRINTER1 /SPOOL=ALL
- ! echo [3P QSTAT PRINTER1 /SPOOL=ALL
- ! goto out
- !:repmine
- ! echo 3P QSTAT PRINTER1
- ! echo [3P QSTAT PRINTER1
- ! goto out
- !:PRINTER2
- ! if %2%. == MineOnly. goto chkmine
- ! echo 3P QSTAT PRINTER2 /SPOOL=ALL
- ! echo [3P QSTAT PRINTER2 /SPOOL=ALL
- ! goto out
- !:chkmine
- ! echo 3P QSTAT PRINTER2
- ! echo [3P QSTAT PRINTER2
- ! goto out
- !:ALL
- ! if %2%. == MineOnly. goto allmine
- ! for %%p in (PRINTER1 PRINTER2) do echo [3P QSTAT %%p /SPOOL=ALL
- ! goto out
- !:allmine
- ! for %%p in (PRINTER1 PRINTER2) do echo [3P QSTAT %%p
- !:out
- ! pause
- .................................................
- *Delete Printjobs From Printer Queue
- ?3P DEL Printername /SPOOL=xxx
- >3P DEL Printername /SPOOL=xxx
- >
- >Printjobs in a Printer Queue can be seen via
- >option 1 in the Printer Maintenance Sub-Menu
- >
- >Please Select a Printer Name
- > PRINTER1 Dot-matrix Color,stencils
- > PRINTER2 Laser Portrait,Landscape
- >
- <PRINTER1,PRINTER2,ALL
- >
- >Now Enter the spool ID you wish to Delete, or ALL
- >if you wish to erase all printjobs from this queue
- >
- <
- >3P DEL \\sys\%1 /SPOOL=%2
- !echo off
- ! echo [3P LINK LPT3: \\SYS\%1 /np > nul:
- ! echo [3P DEL LPT3: /SPOOL=%2
- ! echo [3P UNLINK LPT3: /np > nul:
- .................................................
- *Change Priority for One Printjob in Queue
- ?3P SET /SPOOL=xxx /PRI=yyy
- >3P SET /SPOOL=xxx /PRI=yyy
- >
- >
- >Please Select a Printer Name
- > PRINTER1 Dot-matrix Color,stencils
- > PRINTER2 Laser Portrait,Landscape
- >
- <PRINTER1,PRINTER2
- >
- >Enter the Spool ID of the Printjob
- >whose Priority you Wish to Change
- >
- <
- >
- >Please Select the Priority You Wish to Set
- > (15 = Low 50 = normal 85 = High)
- >
- <15,25,50,75,85
- >
- !echo off
- ! if %2%.==. goto need
- ! echo 3P SET %1 /SPOOL=%2 /PRI=%3
- ! echo [3P LINK LPT3: \\sys\%1 /np > nul:
- ! echo [3P SET LPT3: /SPOOL=%2 /PRI=%3
- ! echo [3P UNLINK LPT3: /np > nul:
- ! goto done
- !:need
- ! echo .
- ! echo . You MUST enter a Spool ID! You May See
- ! echo . the Printjob(s) in the Printer Queue via
- ! echo . "Show Printjobs in Printer Queue", above
- ! echo .
- !:done
- ! pause
- .................................................
- *
- @netadmin.mdf
- .................................................
- *
- @netadmin.mdf
- .................................................
- *
- @netadmin.mdf
- .................................................
- *
- @netadmin.mdf
- .................................................
- *Return to Main Menu
- @automenu.mdf
- .................................................
- .................................................
- %NETADMIN DOS, Shutdown, and Unlink
- .................................................
- .................................................
- *Disconnect A User from Network
- ?3F UNLINK \\username
- >3F UNLINK \\username
- >
- >Please Select the User to Unlink from Server
- >
- <UserOne,UserTwo,UserThree,UserFour,UserFive,UserSix,UserSeven,UserEight,UserNine,UserTen,Admin
- >
- >3F UNLINK \\%1
- =echo [3F UNLINK \\%1
- .................................................
- *Shutdown Network Services
- ?3M,3P & 3N SHUTDOWN
- ^shelby
- >WARNING!!! This will HALT ALL Network Operations!
- >
- >If you are SURE you wish to do this, press Return
- >otherwise, press ESC now
- <
- +shutdown.bat
- .................................................
- *
- @netadmin.mdf
- .................................................
- *
- @netadmin.mdf
- .................................................
- *
- @netadmin.mdf
- .................................................
- *
- @netadmin.mdf
- .................................................
- *
- @netadmin.mdf
- .................................................
- *Return to Main Menu
- @automenu.MDF
- .................................................
- .................................................
- %NETADMIN Backup
- .................................................
- .................................................
- *Backup Server to Tape
- ?3B BACKUP
- ^shelby
- +echo [3f login server1 /pass=david; link e: \\sys\apps
- +echo [3b backup
- +start
- .................................................
- *Cancel Backup in Progress
- ?Requires ADMIN Capability
- ^shelby
- >3B CANCEL
- =echo [3B CANCEL
- .................................................
- *Display Header of Backup Tape
- ?3B DIR
- >3B DIR
- =echo [3B DIR
- .................................................
- *
- @netadmin.mdf
- .................................................
- *
- @netadmin.mdf
- .................................................
- *
- @netadmin.mdf
- .................................................
- *
- @netadmin.mdf
- .................................................
- *Return to Main Menu
- @automenu.MDF
- .................................................
- .................................................
- %NETADMIN Network and DOS Commands
- .................................................
- .................................................
- *File Service commands
- ?3F
- ^shelby
- !echo [3F HELP
- !echo [3F
- .................................................
- *Print Service commands
- ?3P
- ^shelby
- !echo [3P HELP
- !echo [3P
- .................................................
- *Name Service commands
- ?3N
- ^shelby
- !echo [3N HELP
- !echo [3N
- .................................................
- *Backup Service commands
- ?3B
- ^shelby
- !echo [3B HELP
- !echo [3B
- .................................................
- *Mail Service commands
- ?3M
- ^shelby
- !echo [3M HELP
- !echo [3M
- .................................................
- *DOS commands
- !echo off
- !temp.bat
- .................................................
- *
- @netadmin.mdf
- .................................................
- *Return to Main Menu
- @automenu.MDF
- .................................................
- .................................................
- # End of NetAdmin Menu