RE: [U2] {Spam?} Unidata question
Had a look at how we do it. This is on universe thought. Disable logons (done in our menu system, it logs users off after they logon) Do a port status to find out who is on the system Send messages to the users giving them a countdown to being logged off Do another port status to find out who is still logged on Do Master OFF for those still logged on start evening work . . Finish evening work Enable logons Not as much help as you were looking for, I didn't read the Unidata in the subject line (dooh). But you're on the right track. Les -Original Message- From: Barry Green [mailto:[EMAIL PROTECTED] Sent: 27 June 2005 17:11 To: u2-users@listserver.u2ug.org Subject: RE: [U2] {Spam?} Unidata question Thanks Les, that would be great!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Les Hewkin Sent: Tuesday, 28 June 2005 12:42 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] {Spam?} Unidata question We do just this. We also have a list of users not to logoff, operators and the like. Haven't got the details to hand on how we did it, it's so long ago. Will dig out the details and post them. Les. -Original Message- From: Barry Green [mailto:[EMAIL PROTECTED] Sent: 27 June 2005 14:55 To: u2-users@listserver.u2ug.org Subject: [U2] {Spam?} Unidata question Hi Group, I'm using Unidata 6.1 on a Windows 2000 server. I'm having problems when I run a backup (using Arcserver) if users do not disconnect their sessions correctly the backup fails. I'm looking for a way to run a batch file before the backup which does the following: - Prevents future logins - Send a message to all logged in users saying Session will disconnect in 3 minutes - Sleep for 1 minute - Send a message to all logged in users saying Session will disconnect in 2 minutes - Sleep for 1 minute - Send a message to all logged in users saying Session will disconnect in 1 minute - Sleep for 1 minute - Logoff any logged in users Perform backup Then run another batch file which just restores the login function. Has anyone done this or can you give me any clues as to how and which commands to use, particularly the commands to stop logins, logoff all users (preferably in one command) and to allow logins again. Many thanks Barry --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ This message has been comprehensively scanned for viruses, please visit http://virus.e2e-filter.com/ for details. This e-mail and any attachments are confidential and intended solely for the use of the addressee only. If you have received this message in error, you must not copy, distribute or disclose the contents; please notify the sender immediately and delete the message. This message is attributed to the sender and may not necessarily reflect the view of Travis Perkins plc or its subsidiaries (Travis Perkins). Agreements binding Travis Perkins may not be concluded by means of e-mail communication. E-mail transmissions are not secure and Travis Perkins accepts no responsibility for changes made to this message after it was sent. Whilst steps have been taken to ensure that this message is virus free, Travis Perkins accepts no liability for infection and recommends that you scan this e-mail and any attachments. Part of Travis Perkins plc. Registered Office: Lodge Way House, Lodge Way, Harlestone Road, Northampton, NN5 7UG. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] {Spam?} Unidata question
Thanks for that Les. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Les Hewkin Sent: Tuesday, 28 June 2005 6:38 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] {Spam?} Unidata question Had a look at how we do it. This is on universe thought. Disable logons (done in our menu system, it logs users off after they logon) Do a port status to find out who is on the system Send messages to the users giving them a countdown to being logged off Do another port status to find out who is still logged on Do Master OFF for those still logged on start evening work . . Finish evening work Enable logons Not as much help as you were looking for, I didn't read the Unidata in the subject line (dooh). But you're on the right track. Les -Original Message- From: Barry Green [mailto:[EMAIL PROTECTED] Sent: 27 June 2005 17:11 To: u2-users@listserver.u2ug.org Subject: RE: [U2] {Spam?} Unidata question Thanks Les, that would be great!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Les Hewkin Sent: Tuesday, 28 June 2005 12:42 AM To: u2-users@listserver.u2ug.org Subject: RE: [U2] {Spam?} Unidata question We do just this. We also have a list of users not to logoff, operators and the like. Haven't got the details to hand on how we did it, it's so long ago. Will dig out the details and post them. Les. -Original Message- From: Barry Green [mailto:[EMAIL PROTECTED] Sent: 27 June 2005 14:55 To: u2-users@listserver.u2ug.org Subject: [U2] {Spam?} Unidata question Hi Group, I'm using Unidata 6.1 on a Windows 2000 server. I'm having problems when I run a backup (using Arcserver) if users do not disconnect their sessions correctly the backup fails. I'm looking for a way to run a batch file before the backup which does the following: - Prevents future logins - Send a message to all logged in users saying Session will disconnect in 3 minutes - Sleep for 1 minute - Send a message to all logged in users saying Session will disconnect in 2 minutes - Sleep for 1 minute - Send a message to all logged in users saying Session will disconnect in 1 minute - Sleep for 1 minute - Logoff any logged in users Perform backup Then run another batch file which just restores the login function. Has anyone done this or can you give me any clues as to how and which commands to use, particularly the commands to stop logins, logoff all users (preferably in one command) and to allow logins again. Many thanks Barry --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ This message has been comprehensively scanned for viruses, please visit http://virus.e2e-filter.com/ for details. This e-mail and any attachments are confidential and intended solely for the use of the addressee only. If you have received this message in error, you must not copy, distribute or disclose the contents; please notify the sender immediately and delete the message. This message is attributed to the sender and may not necessarily reflect the view of Travis Perkins plc or its subsidiaries (Travis Perkins). Agreements binding Travis Perkins may not be concluded by means of e-mail communication. E-mail transmissions are not secure and Travis Perkins accepts no responsibility for changes made to this message after it was sent. Whilst steps have been taken to ensure that this message is virus free, Travis Perkins accepts no liability for infection and recommends that you scan this e-mail and any attachments. Part of Travis Perkins plc. Registered Office: Lodge Way House, Lodge Way, Harlestone Road, Northampton, NN5 7UG. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] {Spam?} Unidata question
Barry; You have a couple of options: 1. Select the backup open files option in Arcserve. It's been quite a while since I've seen Arcserve, but I'm pretty sure it has the option (may be an extra cost add on). Of course, if your users are actually doing something with the database while it's backed up then this won't be a good option. DBPAUSE/DBRESUME can be used to retain the physical integrity of the files - but not logical integrity. This is probably the least effort solution - but leaves the potential for the most damage. 2. Run stopud -f either from any pre-backup command available in Arcserve or use the scheduler to run it a couple minutes before the backup is to start. This is a pretty harsh way to get everybody off. Unfortunately, it asks for confirmation before stopping UniData so you will have to accommodate for that within your script/batch file. Then startud to restart it. 3. Use net stop to stop the UniData database and telnet services. This is very similar to the stopud -f - but doesn't ask for confirmation. Use net start to restart the services. The next problem is how to notify your users. The easiest way is to use net send. This can send a message to all users on the system. To prevent logins you have a couple of options: stop the unidata telnet service which will allow current users to work fine but not allow any new logins; or keep a flag mechanism in the login process to not allow users to login while the backup is running. If you use a language such as perl or curl you could do thinks like listuser (which works on the nt command line) to get the list of current users, parse out the users to target them with the messages. You can also get the PID's to pass to deleteuser (which also works on the command line) to log off the users in a slightly more friendly way. If you prefer working within UniData you could use the scheduler to start a process that logs in (note it will go through the login VOC item so you may have to make accommodations for it). You could have it run a program that will do all of this. hth Colin Alfke From very wet Calgary Canada -Original Message- From: Barry Green Hi Group, I'm using Unidata 6.1 on a Windows 2000 server. I'm having problems when I run a backup (using Arcserver) if users do not disconnect their sessions correctly the backup fails. I'm looking for a way to run a batch file before the backup which does the following: - Prevents future logins - Send a message to all logged in users saying Session will disconnect in 3 minutes - Sleep for 1 minute - Send a message to all logged in users saying Session will disconnect in 2 minutes - Sleep for 1 minute - Send a message to all logged in users saying Session will disconnect in 1 minute - Sleep for 1 minute - Logoff any logged in users Perform backup Then run another batch file which just restores the login function. Has anyone done this or can you give me any clues as to how and which commands to use, particularly the commands to stop logins, logoff all users (preferably in one command) and to allow logins again. Many thanks Barry --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] {Spam?} Unidata question
Hi Colin, Many thanks for the suggestions, you've given me plenty of options!! Regards Barry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, 28 June 2005 11:07 PM To: u2-users@listserver.u2ug.org Subject: RE: [U2] {Spam?} Unidata question Barry; You have a couple of options: 1. Select the backup open files option in Arcserve. It's been quite a while since I've seen Arcserve, but I'm pretty sure it has the option (may be an extra cost add on). Of course, if your users are actually doing something with the database while it's backed up then this won't be a good option. DBPAUSE/DBRESUME can be used to retain the physical integrity of the files - but not logical integrity. This is probably the least effort solution - but leaves the potential for the most damage. 2. Run stopud -f either from any pre-backup command available in Arcserve or use the scheduler to run it a couple minutes before the backup is to start. This is a pretty harsh way to get everybody off. Unfortunately, it asks for confirmation before stopping UniData so you will have to accommodate for that within your script/batch file. Then startud to restart it. 3. Use net stop to stop the UniData database and telnet services. This is very similar to the stopud -f - but doesn't ask for confirmation. Use net start to restart the services. The next problem is how to notify your users. The easiest way is to use net send. This can send a message to all users on the system. To prevent logins you have a couple of options: stop the unidata telnet service which will allow current users to work fine but not allow any new logins; or keep a flag mechanism in the login process to not allow users to login while the backup is running. If you use a language such as perl or curl you could do thinks like listuser (which works on the nt command line) to get the list of current users, parse out the users to target them with the messages. You can also get the PID's to pass to deleteuser (which also works on the command line) to log off the users in a slightly more friendly way. If you prefer working within UniData you could use the scheduler to start a process that logs in (note it will go through the login VOC item so you may have to make accommodations for it). You could have it run a program that will do all of this. hth Colin Alfke From very wet Calgary Canada -Original Message- From: Barry Green Hi Group, I'm using Unidata 6.1 on a Windows 2000 server. I'm having problems when I run a backup (using Arcserver) if users do not disconnect their sessions correctly the backup fails. I'm looking for a way to run a batch file before the backup which does the following: - Prevents future logins - Send a message to all logged in users saying Session will disconnect in 3 minutes - Sleep for 1 minute - Send a message to all logged in users saying Session will disconnect in 2 minutes - Sleep for 1 minute - Send a message to all logged in users saying Session will disconnect in 1 minute - Sleep for 1 minute - Logoff any logged in users Perform backup Then run another batch file which just restores the login function. Has anyone done this or can you give me any clues as to how and which commands to use, particularly the commands to stop logins, logoff all users (preferably in one command) and to allow logins again. Many thanks Barry --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] {Spam?} Unidata question
Only thing with the net stop and net start is that we have seen this eventually fail on some systems. Usually the fix is that every three or four instances to reboot to ensure memory is flushed. Neither we nor the customers investigated this as the reboot was relatively straightforward to achieve. Robert Paterson Technology Support Manager www.epicor.com Tel.: +44 (1344) 468231 Cell: +44 (7799) 348513 Fax: +44 (1344) 468050 E-Mail: [EMAIL PROTECTED] 1 The Arena, Downshire Way, Bracknell, Berks, UK, RG12 1PU -Original Message- 3. Use net stop to stop the UniData database and telnet services. This is very similar to the stopud -f - but doesn't ask for confirmation. Use net start to restart the services. This e-mail is for the use of the intended recipient(s) only. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not use, disclose or distribute this e-mail without the author's prior permission. We have taken precautions to minimize the risk of transmitting software viruses, but we advise you to carry out your own virus checks on any attachment to this message. We cannot accept liability for any loss or damage caused by software viruses. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] {Spam?} Unidata question
Strange. We've had one client use it nightly for years. It's worked fine - until their last UniData upgrade. Since then we've had to stop the Windows Management Instrumentation Service as well as it keeps a shared memory segment open that prevents UniData from starting. Once we started Stopping WMIS starting Unidata and then starting WMIS we haven't had a problem. This doesn't sound like your problem because it was consistent and not sporadic. Colin Alfke Soggy, Calgary, AB -Original Message- From: Robert Paterson Only thing with the net stop and net start is that we have seen this eventually fail on some systems. Usually the fix is that every three or four instances to reboot to ensure memory is flushed. Neither we nor the customers investigated this as the reboot was relatively straightforward to achieve. Robert Paterson -Original Message- 3. Use net stop to stop the UniData database and telnet services. This is very similar to the stopud -f - but doesn't ask for confirmation. Use net start to restart the services. --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/